// 类型声明
// const/let  变量名:类型 = 类型值

const xiaojiejie: {
  name: string;
  age: number;
} = {
  name: "大脚",
  age: 18,
};
console.log(xiaojiejie.name);

// const another: Object = {
//   name: "小脚",
//   age: 28,
// };

// console.log(another.name);

const xiaoJieJies: String[] = ["谢大脚", "刘英", "小红"];

console.log(xiaoJieJies);

//  重点
//  ()=>string 返回 string类型的 函数

//   const jianxiaoJieJie: () => string

const jianxiaoJieJie: () => string = () => {
  return "脚";
};

console.log(jianxiaoJieJie());
